package com.yuanqiworld.vw.domain;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;
import java.util.ResourceBundle;

/**
 * 填充数据.
 */
public class DataOnDemand {
    private static ResourceBundle resourceBundle = ResourceBundle.getBundle("app");

    public static void main(String[] args) throws IOException {
        // 启动前请将<property name="hibernate.hbm2ddl.auto" value="create"/>.
        new ClassPathXmlApplicationContext("classpath:/META-INF/spring/applicationContext.xml");

        MetadataDataOnDemand.initDB();
        UserInfoDataOnDemand.initDB();
        MessageDataOnDemand.initDB();

    }
}
